<p id="notice"><%= notice %></p>

<h1>Listing Process Tasks</h1>

<table>
  <thead>
    <tr>
      <th>Process instance</th>
      <th>Process active instance</th>
      <th>Bpmn name</th>
      <th>Description</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @process_tasks.each do |process_task| %>
      <tr>
        <td><%= process_task.process_instance_id %></td>
        <td><%= process_task.process_active_instance_id %></td>
        <td><%= process_task.bpmn_name %></td>
        <td><%= process_task.description %></td>
        <td><%= link_to 'Show', process_task %></td>
        <td><%= link_to 'Edit', edit_process_task_path(process_task) %></td>
        <td><%= link_to 'Destroy', process_task, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Process task', new_process_task_path %>
